<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta itemprop="name" content="百步亭社区邻里购物街"/>
	<meta itemprop="image" content="http://huodong.wisq.cn/2017/market/images/share_2.jpg" />
	<meta name="description" itemprop="description" content="吃喝玩乐应有尽有，就等街坊们来！" />
	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
	<title>百步亭社区邻里购物街</title>
	<style>
		body {
		  width: 100%;
		  max-width: 750px;
		  margin: 0 auto;
		  padding: 0;
		  background: #a689fd; }
		.imgBox{
			width:100%;
		}
		.imgBox img {
		  display: block;
		  width: 100%;
		  height: auto; 
		}
/* app外打开 */
#footer{
	font-size: 13px;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 40px;
	z-index:99;
	color: #F37520;
	background: rgba(255,255,255,0.8);
	box-shadow:0px -2px 5px rgba(0,0,0,0.2);
	display: none;
}
#footer .close{
	display: block;
	width: 16px;
	height: 16px;
	background: url("http://app.wisq.cn/img/close.png");
	background-size: contain;
	border-radius: 50%;
	text-decoration: none;
	cursor: pointer;
	float: left;
	margin:12px 5px 0 10px;

}
#footer .text{
	display: block;
	/* width:80% ; */
	height: 40px;
	line-height: 40px;
	float: left;
	margin-left: 5px;
}
#footer .logo{
	display: block;
	width: 35px;
	height: 35px;
	background: url("http://app.wisq.cn/img/logo-min.png");
	background-size: contain;
	float: left;
	margin-top: 2px;
}
#footer .btn-open{
	position: absolute;
	top: 5px;
	right: 10px;
	display: block;
	width: 48px;
	text-align: center;
	height: 30px;
	line-height: 30px;
	color: #F37520;
	border: 1px solid #F37520;
	text-decoration:none;
}
#weixin-tip {
	font-size: 13px;
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	background: rgba(0, 0, 0, 0.8);
	filter: alpha(opacity=80);
	width: 100%;
	height: 100%;
	z-index: 100;
}
#weixin-tip img{
	display: block;
	width: 80%;
	float: right;
	margin-right: 10px;
}
.c_btn_con{
	position: relative;
	width: 100%;
	padding: 0 10%;
	height: 60px;
	float: left;
	text-align: right;
	margin-top: 40px;
	box-sizing: border-box;
}
#weixin-tip .close {
	display: inline-block;
	width: 40px;
	height: 40px;
	background: url("http://app.wisq.cn/img/tip_close.png");
	background-size: contain;
	border-radius: 50%;
	text-decoration: none;
	cursor: pointer;
	margin-right: 10%;
}
	</style>
</head>
<body>

	<div class="imgBox">
		<img src="images/market_2_02.jpg" alt="">
	</div>
	<div class="imgBox">
		<img src="images/market_2_04.jpg" alt="">
	</div>
	<div class="imgBox">
		<img src="images/market_2_05.jpg" alt="">
	</div>
	<div class="imgBox">
		<img src="images/market_2_006.jpg" alt="">
	</div>
	<div class="imgBox">
		<img src="images/market_2_007.jpg" alt="">
	</div>

<!-- app外打开 -->
	<footer id="footer">
		<article><i id="close_f" class="close"></i><i class="logo"></i><a class="text">和大家一起加入爱社区吧！</a></article><a id="app_open" class="btn-open" href="aishequ://wisq/">打开</a>
	</footer>
	<div id="weixin-tip">
		<img src="http://app.wisq.cn/img/live_weixin.png" alt="浏览器打开">
		<section class="c_btn_con">
			<a id="close" title="关闭" class="close"></a>
		</section>
	</div>
	<script src="http://huodong.wisq.cn/2017/common_js/jquery-2.1.4.min.js"></script>
	<script>
	var WXAPPID = 'wx6e9eab43a1b99382';
	var APPDEBUG = false;
	var GETSIGNATURE = "http://isq.wx.cncn.org.cn/Home/Wx/getSignature";

	var shareTitle='百步亭社区邻里购物街';
	var shareDesc='吃喝玩乐应有尽有，就等街坊们来！';
	var sharePic_url='http://huodong.wisq.cn/2017/market/images/share_2.jpg';

	var shareAction = {
				"title": shareTitle,//分享的标题
				"desc": shareDesc,//分享的描述
				"url": window.location.href,//分享的链接
				"img": sharePic_url//分享的图片
			};
	function agentMatch() {
		var ua = navigator.userAgent.toLowerCase();
		if (ua.match(/MicroMessenger/i) == "micromessenger") {
			return 'wx';
		} else if (ua.match(/misqazbrowser/i) == "misqazbrowser") {
			return 'isqaz';
		} else if (ua.match(/misqiosbrowser/i) == "misqiosbrowser") {
			return 'isqios';
		} else {
			return 'default';
		}
	};
	function callShare() {
		var useragent = agentMatch();
		if (useragent == "wx") {
			jQuery.getScript("http://res.wx.qq.com/open/js/jweixin-1.0.0.js", function() {
				jQuery.getScript("http://huodong.wisq.cn/2017/common_js/wxShare.js");   //注意wxShare.js路径
			});
		} else if (useragent == "isqaz" || useragent == "isqios") {
			UseNative.checkSharePossibility(true);
		}
	};
	function init_Share(title, desc, link, img) {
		shareAction.title = title;
		shareAction.desc = desc;
		shareAction.url = link;
		shareAction.img = img;
		callShare();
	};
	function use_native_share() {
		UseNative.passShareParams(JSON.stringify(shareAction));
	};
	try{
		init_Share(shareTitle, shareDesc, window.location.href, sharePic_url);
	}catch(err){
		setTimeout(function(){
			init_Share(shareTitle, shareDesc, window.location.href, sharePic_url);
		},1000);
	}
	window.onload = function () {
		var ua=agentMatch();
		if(ua!="isqios"&&ua!="isqaz"){
			document.getElementById("footer").style.display="block";
		}

		document.getElementById("close_f").onclick = function() {
				document.getElementById("footer").style.display="none";
				document.getElementById("fill_con").style.display="none";
			};

		var is_weixin = (function () {
			return navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1
		})();


		var winHeight = typeof window.innerHeight != 'undefined' ? window.innerHeight : document.documentElement.clientHeight; //兼容IOS，不需要的可以去掉
		var btn = document.getElementById('J_weixin');
		var tip = document.getElementById('weixin-tip');
		var close = document.getElementById('close');
		var app_open = document.getElementById('app_open');
		if (is_weixin) {  
				tip.style.height = winHeight + 'px'; //兼容IOS弹窗整屏
				tip.style.display = 'block';
				app_open.onclick = function () {
					tip.style.display = 'block';
				}
		}
		if(ua=='default'){
			app_open.onclick = function () {
				// setTimeout(function(){window.location.href="http://h5.wisq.cn/app/index.html"},2000);
				}
		}
		close.onclick = function () {
			tip.style.display = 'none';
		}
}

	</script>
</body>
</html>